package com.hoshiicloud.saleorder.dto;

import com.hoshiicloud.common.validate.annotations.DateStr;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 添加出货单入参实体
 *
 * @author Markerccc
 * @date 2019/8/26 - 14:06
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "DispatchBillAndDetailDTO", description = "添加出货单入参实体")
public class DispatchBillAndDetailDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单类型
     */
    @ApiModelProperty(value = "订单类型")
    private Integer orderType;

    /**
     * 分店Id
     */
    @NotNull(message = "请选择店铺")
    @ApiModelProperty(value = "分店Id")
    private Long storeId;

    /**
     * 商品类目ID
     */
    @ApiModelProperty(value = "商品类目ID")
    private String categoryId;

    /**
     * 商品品牌ID
     */
    @ApiModelProperty(value = "商品品牌ID")
    private Long goodsBrandId;

    /**
     * 订单状态
     */
    @ApiModelProperty(value = "订单状态")
    private Integer orderInfoStatus;
    /**
     * 下单开始时间
     */
    @DateStr(message = "下单开始时间范围不能为空, 格式要求为yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "下单开始时间")
    private String createdOrderStartTime;

    /**
     * 下单开始结束时间
     */
    @DateStr(message = "下单结束时间范围不能为空, 格式要求为yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "下单开始结束时间")
    private String createdOrderEndTime;

}
